home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 395_01 / typing / makefile < prev    next >
Encoding:
Makefile  |  1993-11-19  |  806 b   |  41 lines

  1. #  @(#) Makefile for Typing Tutor.
  2. #
  3. Sources =    ./source/tt.c         \
  4.         ./source/init.c      \
  5.         ./source/do_lesson.c \
  6.         ./source/get_data.c
  7.  
  8. Objects =    ./object/tt.o         \
  9.         ./object/init.o      \
  10.         ./object/do_lesson.o \
  11.         ./object/get_data.o
  12.  
  13. Includes = ./include/externals.h ./include/tt.h
  14.  
  15. Lesson = ./text/tt.text
  16. Libraries = -lcurses -lmalloc -lc
  17.  
  18. CC    = /bin/cc
  19. DEST    = /usr/local/bin
  20. TEXT    = /usr/local/lib
  21. CFLAGS    = -O -c -I./include
  22.  
  23. ${Objects}: ${Sources}
  24.         ${CC} ${CFLAGS} ${Sources}
  25.         mv *.o ./object
  26.  
  27. ./bin/tt:    ${Objects}
  28.         ${CC} ${LDFLAGS} -o ./bin/tt ${Objects} ${Libraries}
  29.  
  30. install:
  31.         cp ./bin/tt ${DEST}
  32.         cp ./text/tt.text $(TEXT}
  33.  
  34. clean:
  35.         rm -f ${Objects} core ./bin/tt
  36.  
  37. ./source/tt.c:            ./include/tt.h
  38. ./source/init.c:        ${Includes}
  39. ./source/do_lesson.c:        ${Includes}
  40. ./source/get_data.c:        ${Includes}
  41.